<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>增加員工</title>
</head>
<body>
    <h1>员工信息</h1>
    <form th:action="@{/oper/addEmp}" method="post">
        <div>
            <label>e_id</label><br>
            <input type="text" name="eId">
        </div>
        <div>
            <label>e_name</label><br>
            <input type="text" name="eName">
        </div>
        <div>
            <label>e_email</label><br>
            <input type="text" name="eEmail">
        </div>
        <div>
            <input type="radio" name="eGender"value="1">
            <label>男</label>
            <input type="radio" name="eGender" value="0">
            <label>女</label>
        </div>
        <div>
            <label>e_birth</label><br>
            <input type="text" name="eBirth" >
        </div>
        <div>
            <label>e_d_id</label><br>
            <select name="eDId" >
                <option th:each="emp:${employees}" th:text="${emp.getDName()}" th:value="${emp.getEDId()}" ></option>
            </select>
        </div>
        <div>
            <input type="submit" value="提交">
        </div>
    </form>
</body>
</html>